From 8761d4d6095d464873a4a592ff8224df0acce7b2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Timm=20B=C3=A4der?= Date: Wed, 3 May 2017 11:11:20 +0200 Subject: [PATCH] widget: Add default snapshot implementation gtk_widget_snapshot will snapshot the css box, the default snapshot vfunc now gtk_widget_snapshot_child's all child widgets. --- gtk/gtkwidget.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index 39c5498d85..b3293b3434 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -940,7 +940,12 @@ static void gtk_widget_real_snapshot (GtkWidget *widget, GtkSnapshot *snapshot) { - /* nothing to do here */ + GtkWidget *child; + + for (child = _gtk_widget_get_first_child (widget); + child != NULL; + child = _gtk_widget_get_next_sibling (child)) + gtk_widget_snapshot_child (widget, child, snapshot); } static void -- 2.30.2